<template>
  <ve-pie :data="chartData" :settings="chartSettings" :judge-width="true"></ve-pie>
</template>

<script>
import VePie from "v-charts/lib/pie.common";

export default {
  name: "Chart2",
  components: { VePie },
  data() {
    this.chartSettings = {
      level: [["1/1", "1/2", "1/3"], ["1/4", "1/5"]]
    };
    return {
      chartData: {
        columns: ["日期", "访问用户"],
        rows: [
          { 日期: "1/1", 访问用户: 1393 },
          { 日期: "1/2", 访问用户: 3530 },
          { 日期: "1/3", 访问用户: 2923 },
          { 日期: "1/4", 访问用户: 1723 },
          { 日期: "1/5", 访问用户: 3792 },
          { 日期: "1/6", 访问用户: 4593 }
        ]
      }
    };
  }
};
</script>